<template>
    <div class="no-auth">
        <el-icon class="icon">
            <WarnTriangleFilled />
        </el-icon>
        <div class="text">
            您无访问该页面的权限，请联系管理员开通！
        </div>
        <div class="back">
            <el-button @click="back">返回首页</el-button>
        </div>
    </div>
</template>
<script lang="ts" setup>
import { useRouter } from 'vue-router';

const router = useRouter()
const back = () => {
    router.push({ path: "/" })
}
</script>
<style lang="scss" scope>
.no-auth {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .icon {
        font-size: 68px;
        color: rgb(175, 10, 10);
    }

    .text {
        font-size: 24px;
        font-weight: 600;
    }

    .back {
        margin-top: 12px;
    }
}
</style>